﻿<!--<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}" />-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui.admin/css/style.css" />
<style type="text/css">
#businessPic_table tbody td {
	font-size: 23px;
}
</style>
<title>营业执照查看</title>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>
		图片管理 <span class="c-gray en">&gt;</span> 图片列表 <a
			class="btn btn-success radius r"
			style="line-height:1.6em;margin-top:3px"
			href="javascript:location.replace(location.href);" title="刷新"><i
			class="Hui-iconfont">&#xe68f;</i> </a>
	</nav>
	<div class="page-container">
		<div class="text-c">
			<input type="text" name="" id="" placeholder="图片名称"
				style="width:250px" class="input-text">
			<button name="" id="" class="btn btn-success" type="submit">
				<i class="Hui-iconfont">&#xe665;</i> 搜图片
			</button>
		</div>
		<div class="cl pd-5 bg-1 bk-gray mt-20">
			<span class="l"><a href="javascript:;" onclick="datadel()"
				class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i>
					批量删除</a> <a class="btn btn-primary radius"
				onclick="picture_add('添加图片','picture-add.html')" href="javascript:;"><i
					class="Hui-iconfont">&#xe600;</i> 添加图片</a> </span> <span class="r">共有数据：<strong>54</strong>
				条</span>
		</div>
		<div class="mt-20">
			<table id="businessPic_table"
				class="table table-border table-bordered table-bg table-hover">
				<thead>
					<tr class="text-c">
						<th>编号</th>
						<th>企业编号</th>
						<th>企业名称</th>
						<th>营业执照</th>
						<th>更新时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				</tbody>
			</table>
		</div>
		<input type="hidden" value="" id="" />
	</div>

	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript">
		$(function() {
			$("#businessPic_table").dataTable().fnDestroy();
			$("#businessPic_table")
					.dataTable(
							{
								"processing" : true,
								"serverSide" : false,
								"destroy" : true,
								"ajax" : "${path}/businessLicense/getBusinessLicenseList",
								"paginationType" : "full_numbers",
								"aaSorting" : [ [ 0, "desc" ] ],
								"aoColumnDefs" : [ {
									"orderable" : false,
									"aTargets" : [ 1, 2, 3, 4, 5 ]
								} ],
								"createdRow" : function(row, data, index) {
									$('td', row)
											.eq(3)
											.html('')
											.append(
													"<a href='javascript:;' onClick='pictureEdit("
															+ data.supplierEnterpriseNo
															+ ")'>"
															+ "<img width='210' class='picture-thumb' src='"+data.picUrl+"'></a>");
								},

								"columns" : [ {
									"data" : "id",
									"defaultContent" : ""
								}, {
									"data" : "supplierEnterpriseNo",
									"defaultContent" : ""
								}, {
									"data" : "enterpriseName",
									"defaultContent" : ""
								}, {
									"data" : "",
									"defaultContent" : ""
								}, {
									"data" : "uploadDate",
									"defaultContent" : ""
								}, {
									"data" : "",
									"defaultContent" : ""
								} ]
							});
		});

		window.data;
		function pictureEdit(no) {
			data = no;
			picture_edit('图库编辑', '${path}/page/gsp/picture-show', no);
		}


		/*图片-编辑*/
		function picture_edit(title, url, id) {
			var index = layer.open({
				type : 2,
				title : title,
				content : url,
			//id : id
			});
			layer.full(index);
		}

	</script>
</body>
</html>